package cn.zjh.sentinel;


import cn.zjh.domian.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

public class OrderBlockHandler {

    // 必须加上静态static修饰
    public static User getByIdBlockHandler(@PathVariable("id") Long id, BlockException e){
        return new User(-1L, "限流了", "不要来咯，老子遭不住了！");
    }

}
